package our_tests;

import java.awt.image.BufferedImage;
import java.io.IOException;

import datamodel.RGB;

public class RGBTestGenerator {
	
	public static void main(String[] args){
		BufferedImage image = new BufferedImage(4096, 4096,
				BufferedImage.TYPE_INT_ARGB);
		int x = 0;
		int y = 0;
		for(int r = 0; r < 256; r++){
			System.out.println((r + 1) + "out of 256");
			x = (r & 15) * 256;
			y = (r >> 4) * 256;
			for (int g = 0; g < 256; g++){
				for (int b = 0; b < 256; b++){
					image.setRGB(x + g, y + b, (new RGB(r, g, b, 255).getRGBValue()));
				}
			}
		}
		try {
			io.IO.saveImage("colortest", image);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
